package br.com.simulador.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;


@Entity
@Table(name="tbl_reposta_questao")
public class RespostaQuestao extends BaseEntity implements Serializable {
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long id;
	
	@Temporal(TemporalType.TIMESTAMP)
	private Date inicio;
	
	@Temporal(TemporalType.TIMESTAMP)
	private Date fim;
	
	@ManyToOne
	private Resposta resposta;
	
	@ManyToOne
	private ItemQuestao itemQuestao;
	
	@Override
	public Long getId() {
		// TODO Auto-generated method stub
		return id;
	}

	public Date getInicio() {
		return inicio;
	}

	public void setInicio(Date inicio) {
		this.inicio = inicio;
	}

	public Date getFim() {
		return fim;
	}

	public void setFim(Date fim) {
		this.fim = fim;
	}

	public Resposta getResposta() {
		return resposta;
	}

	public void setResposta(Resposta resposta) {
		this.resposta = resposta;
	}

	public ItemQuestao getItemQuestao() {
		return itemQuestao;
	}

	public void setItemQuestao(ItemQuestao itemQuestao) {
		this.itemQuestao = itemQuestao;
	}

	public void setId(Long id) {
		this.id = id;
	}

}
